package com.ruoyi.forum.service;

import java.util.List;
import com.ruoyi.forum.domain.ForumPostUpvote;
import com.ruoyi.forum.domain.vo.PostCollectUpvote;

/**
 * 贴子-点赞Service接口
 * 
 * @author ruoyi
 * @date 2024-02-13
 */
public interface IForumPostUpvoteService 
{
    /**
     * 查询贴子-点赞
     * 
     * @param id 贴子-点赞主键
     * @return 贴子-点赞
     */
    public ForumPostUpvote selectForumPostUpvoteById(Long id);

    /**
     * 查询贴子-点赞列表
     * 
     * @param forumPostUpvote 贴子-点赞
     * @return 贴子-点赞集合
     */
    public List<ForumPostUpvote> selectForumPostUpvoteList(ForumPostUpvote forumPostUpvote);

    /**
     * 新增贴子-点赞
     * 
     * @param forumPostUpvote 贴子-点赞
     * @return 结果
     */
    public int insertForumPostUpvote(ForumPostUpvote forumPostUpvote);

    /**
     * 修改贴子-点赞
     * 
     * @param forumPostUpvote 贴子-点赞
     * @return 结果
     */
    public int updateForumPostUpvote(ForumPostUpvote forumPostUpvote);

    /**
     * 批量删除贴子-点赞
     *
     * @param ids 需要删除的贴子-点赞主键集合
     * @return 结果
     */
    public int deleteForumPostUpvoteByIds(Long[] ids);

    /**
     * 批量删除贴子-点赞
     *
     * @param postCollectUpvote 需要删除的贴子-点赞用户id和帖子id
     * @return 结果
     */
    public int deleteForumPostUpvoteByUserPost(PostCollectUpvote postCollectUpvote);

    /**
     * 删除贴子-点赞信息
     * 
     * @param id 贴子-点赞主键
     * @return 结果
     */
    public int deleteForumPostUpvoteById(Long id);
}
